
<div class="list">
  <table>
    <thead>
      <tr>
        <g:sortableColumn property="id" title="Id" />              
        <g:sortableColumn property="name" title="Name" />
        <g:sortableColumn property="lastName" title="Last Name" />
        <g:sortableColumn property="telephone" title="Telephone" />
        <g:sortableColumn property="email" title="Email" />
        <g:sortableColumn property="birthday" title="Birthday" />
      </tr>
    </thead>
    <tbody>
      <g:each in="${personInstanceList}" status="i" var="personInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
          <td><g:link controller="person" action="show" id="${personInstance.id}">${fieldValue(bean:personInstance, field:'id')}</g:link></td>
          <td>${fieldValue(bean:personInstance, field:'name')}</td>
          <td>${fieldValue(bean:personInstance, field:'lastName')}</td>
          <td>${fieldValue(bean:personInstance, field:'telephone')}</td>
          <td>${fieldValue(bean:personInstance, field:'email')}</td>
          <td>${g.format(date:personInstance.birthday)}</td>
        </tr>
      </g:each>
    </tbody>
  </table>
</div>
